package cn.wolfcode.rbac.domain;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.util.HashMap;

@Data
public class Classinfo {
    private Long id;

    private String name;  // 班级名称

    private Integer number; // 班级人数

    private Employee employee;    // 班主任

    public String getJson(){
        HashMap<String,Object> map = new HashMap<>();
        map.put("id",id);
        map.put("name",name);
        map.put("number",number);
        map.put("employeeId",employee.getId());
        map.put("employeeName",employee.getName());
        return JSON.toJSONString(map);
    }
    public static final int a = 1;
}